package com.qf.service.impl;

import com.qf.dao.UserDao;
import com.qf.pojo.User;
import com.qf.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;

    @Override
    public List<User> login(String tel, String pass) {
        return userDao.login(tel,pass);
    }

    @Override
    public int register(User user) {
        return userDao.register(user);
    }

    @Override
    public List<User> login1(String tel) {
        return userDao.login1(tel);
    }

    @Override
    public int update(User user) {
        return userDao.update(user);
    }
    @Override
    public User selectOne(int id) {
        return userDao.selectOne(id);
    }


}
